package com.mandala.utils;

import org.springframework.stereotype.Service;

@Service
public class QueryUtil {
	
	public static  String getUserQueryCondition(String condition){
		String conditions = "cn=" + condition + ",ou=user,dc=xiehe,dc=com";
		return conditions;
		
	}
	
	public static String getOrgQueryCondition(String condition){
		String conditions = "ou=" + condition + ",ou=org,dc=xiehe,dc=com";
		return conditions;
		
	}
	
	public static String getGroupQueryCondition(String condition){
		String conditions = "cn=" + condition + ",ou=group,dc=xiehe,dc=com";
		return conditions;
		
	}
	
	public static String getSameQueryCondition(){
		String conditions = "(status=" + true +")(isDelete=" + false +")";
		return conditions;
		
	}

}
